                <!-- table -->
				<div class="box">
					<!-- box / title -->
					<div class="title">
                        <?php if($this->session->userdata('recap_provider')):?>
						  <h5>Data Penyaluran Gas dari <?=$provider?> Periode : <?=month_name($month)?> <?=$year?></h5>
						<?php else:?>
                        <h5><?=$title?></h5>
                        <?php endif;?>
                        <div class="search">
                            <?php if($this->session->userdata('recap_provider')):?>
                            <?=form_open('billing-ap/administrator/getRecapExport')?>
								<div class="input">
                                    <label class="search"><?=lang('export')?></label>
									<?=form_dropdown('export',config('export'))?>
								</div>
								<div class="button">
									<?=form_submit('export_submit',lang('export'))?>
								</div>
							<?=form_close()?>
                            <?php else:?>
                            <?=form_open('billing-ap/administrator/getRecapProvider')?>
								<div class="input">
									<?=form_dropdown('month',config('month'),date('m'))?>
								</div>
                                <div class="input">
									<?=form_dropdown('year',config('year'),date('Y'))?>
								</div>
                                <div class="input">
									<?=form_dropdown('provider',$provider_mbenet)?>
								</div>
								<div class="button">
									<input type="submit" name="submit" value="Search" />
								</div>
							<?=form_close()?>
                            <?php endif;?>
						</div>
					</div>
					<!-- end box / title -->
                    
                        
					<div class="table">
						<?php if($this->session->flashdata('success')):?>
						<div id="message-success" class="message message-success">
							<div class="image">
								<img src="resources/images/icons/success.png" alt="Success" height="32" />
							</div>
							<div class="text">
								<h6>Send Email</h6>
								<span>Send Email Success to Recipient , to Edit email set to Settings Menu !</span>
							</div>
							<div class="dismiss">
									<a href="#message-success"></a>
							</div>
						</div>
						<?php elseif($this->session->flashdata('error')):?>
						<div id="message-error" class="message message-error">
								<div class="image">
									<img src="resources/images/icons/error.png" alt="Error" height="32" />
								</div>
								<div class="text">
									<h6>Send Email</h6>
									<span>Send Email Error to Recipient , to Edit email set to Settings Menu !</span>
								</div>
								<div class="dismiss">
									<a href="#message-error"></a>
								</div>
						</div>
						<?php endif;?>
                        
                        <div class="action">
                        <?php if((count($providers)> 0 ) && ($provider!='')):?>
                        <?=anchor('billing-ap/administrator/getRecapProviderReset','Kembali ke Awal')?>
                        <?php elseif((!empty($provider))):?>
    				        Data Tidak ditemukan atau telah dihapus ! 
                        <?=anchor('billing-ap/administrator/getRecapProviderReset','Kembali ke Awal')?>
                        <?php endif;?>
    	                </div>
                    
						<table>
							<thead>
								<tr>
									<th><?=lang('date')?></th>
                                    <th><?=lang('press').'<br/>'.lang('psig')?></th>
                                    <th><?=lang('temp').'<br/>'.'<sup>o</sup> F'?></th>
                                    <th><?=lang('energi').'<br/>'.lang('mmbtu')?></th>
                                    <th><?=lang('comulatif')?></th>
                                    <th><?=lang('information')?></th>
								</tr>
							</thead>
							<tbody>
                            <?php if(COUNT($providers)):?>
                                <?php
                                    $jml_kumulatif = 0; 
                                ?>
                                <?php foreach($providers as $row):?>
                                <?php if($row['day_name']=='Sunday') 
                                    $class='class="sunday"';
                                  elseif($row['day_name']=='Saturday')
                                    $class='class="saturday"';
                                  else
                                    $class='';   
                                ?>
                                <?php
                                    $jml_kumulatif =$jml_kumulatif + $row['GHV'];
                                ?>
                                <tr>
                                    <td <?=$class?>><?=$row['day']?></td>
                                    <td <?=$class?>><?=$row['Pressure']?></td>
                                    <td <?=$class?>><?=$row['Temperature']?></td>
                                    <td <?=$class?>><?=decimal($row['GHV'],4)?></td>
                                    <td <?=$class?>><?=decimal($jml_kumulatif,4)?></td>
                                    <td <?=$class?>><?='&nbsp;&nbsp;&nbsp;&nbsp;'?></td>
                                </tr>
                                <?php endforeach;?>
                            <?php else:?>
							<?php for($i=1;$i<=31;$i++) :?>
							<?php if($i<=9){ $i='0'.$i; } ?>
                                <tr>
                                    <td><?=$i?></td>
                                    <td><?=''?></td>
                                    <td><?=''?></td>
                                    <td><?=''?></td>
                                    <td><?=''?></td>
                                    <td><?=''?></td>
                                </tr>
							  <?php endfor;?>
                              <?php endif;?>
							</tbody>
						</table>
                        
                        <div class="action">
                        <?php if((count($providers)> 0 ) && ($provider!='')):?>
                        <?=anchor('billing-ap/administrator/getRecapProviderReset','Kembali ke Awal')?>
                        <?php elseif((!empty($provider))):?>
    				        Data Tidak ditemukan atau telah dihapus ! 
                        <?=anchor('billing-ap/administrator/getRecapProviderReset','Kembali ke Awal')?>
                        <?php endif;?>
    	                </div>
                    
					</div>
				</div>
				<!-- end table -->